<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="${ctx}/scripts/jquery-1.4.2.min.js"></script> 

<script> 
         function cmtpwd(){
         
         
            if (form1.pass_word.value == '') {
                alert('请输入密码！');
                return false;
            }
            if (form1.pass_word1.value == '') {
               alert('请在一次输入密码！');
                return false;
            }

            if (form1.pass_word.value != form1.pass_word1.value) {
               alert('两次密码不一至！请重新输入');
                return false;
            }
    
                $.post('${ctx}/web/Web/savechagedpwd.do',{pass_word:form1.pass_word.value,pass_word1:form1.pass_word1.value}, function() {
                alert('密码修改成功,请记住新密码');
                window.close();
            })  
  
         
         }
      </script>
</head>
<body>
 <table cellpadding="2" cellspacing="0" border="0"> 
 <form target="_blank" name="form1" action = "${ctx}/web/Web/savechagedpwd.do">
  <!--tr>   
   <td align="left"><label>旧密码:</label></td> 
   <td><input type="password" name="pass_word"/></td>
    </tr-->  
  <tr>   
   <td align="left"><label>新密码:</label></td> 
   <td><input type="password" id ="pass_word" name="pass_word" /></td>
    </tr>  
  <tr>   
   <td align="left"><label>新密码确认:</label></td> 
   <td><input type="password" id ="pass_word1" name="pass_word1" /></td>
    </tr>  
      <tr>   
   <td ><input type="button" onclick="javascript:cmtpwd();" value="确定"/> &nbsp;<input type="button"  onclick ="javascript:window.close();" value="取消"/></td>
    </tr>  
    </form>
      </table>
</body>
</html>